package edu.zhku.date;

import java.util.Date;

public class Mydate {

	public static void main(String[] args) {
		
		Date date = new Date();
		int Year = date.getYear() + 1900;
		int Month = date.getMonth() + 1;
		int Date1 = date.getDate();
		int Hour = date.getHours();
		int Min = date.getMinutes();
		//int Second = date.getSeconds();
		int Day = date.getDay();
		String temp = "a";
		switch(Day)
		{
		case 1:
			temp = "一";break;
		case 2:
			temp = "二";break;
		case 3:
			temp = "三";break;
		case 4:
			temp = "四";break;
		case 5:
			temp = "五";break;
		case 6:
			temp = "六";break;
		case 7:
			temp = "日";break;
		}
		System.out.println(Year + "年" + Month + "月" + Date1 + "日" + Hour + "时" + Min + "分" + "星期" + temp);
		
		//System.out.println(TB.Generate());		
		System.out.printf("%6f",TB.Generate());
		}
}
